I have an ASP.NET website that contains a number of handlers (.ashx). Is it possible to call that handler from a standalone C# REST API (Web API)? Or does it need to be in the same solution file?

[![enter image description here](https://i.stack.imgur.com/HmoGI.png)](https://i.stack.imgur.com/HmoGI.png)

For example, my handler file contains the following code

```
public override void ProcessRequest(HttpContext context)
        {

            base.ProcessRequest(context);
            context.Response.ContentType = "text/xml;charset=utf-8";
            try
            {
                string action = context.Request["action"] ?? "";
                switch (action.ToUpper())
                {
                    case GETDATA:
                        GetDataActions(context);
                        break;

                    case SETDATA:
                        SetDataActions(context);
                        break;
                    default:
                        throw new Exception("");
                }
            }
            catch (Exception genericException)
            {
                context.Response.StatusCode = 500;
                WriteResponse(context, xError.ToString());
            }
        }

```

I would like to call SETDATA action from my WEB API controller.
Can anyone guide me?