Question: I am doing some junit test. I am getting the date as response in the form of date as below :

```
2017-08-14 00:00:00.0 +0:00

```

The data which is present in oracle DB is 

```
14-AUG-17 12.00.00.000000000 AM +00:00

```

I want to use an assert like this but it is failing. can anyone help to make sure that both expected and actual matches.

```
Assert.assertEquals("14-08-2017", 2017-08-14 00:00:00.0 +0:00); 

```

Answer: 
A possible solution, [as proposed here](https://stackoverflow.com/questions/25311955/web-api-2-2-odata-v4-function-routing), is to add `<modules runAllManagedModulesForAllRequests="true" />` to `<system.webServer>` in the `web.config` file : 

```
 <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
 </system.webServer>

```

It turns out that adding this module makes the presence of `System.Web.Handlers.TransferRequestHandler` handler unnecessary. 

Therefore the following system.webServer configuration is sufficient to handle both api query and custom OData function queries : 

```
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true" />
    <handlers>
      <remove name="OPTIONSVerbHandler"/>
      <remove name="TRACEVerbHandler"/>
    </handlers>
  </system.webServer>

```

Nevertheless, **I'm not confortable with this solution** as I don't know exactlly what could be the effects of `<modules runAllManagedModulesForAllRequests="true" />`.
Starting from my previous [answer](https://stackoverflow.com/questions/45275892/how-to-prevent-http-404-for-a-custom-action-in-an-odata-controller?answertab=active#45281255), I've created a new model (AnotherModel) and a new ApiController (AnotherModelsController)

AnotherModel.cs

```
namespace DemoOdataFunction.Models
{
    public class AnotherModel
    {
        public int Id { get; set; }

        public int MyInt { get; set; }

        public string MyString { get; set; }
    }
}

```

AnotherModelsController.cs

```
namespace DemoOdataFunction.Controllers
{
    public class AnotherModelsController : ApiController
    {
        public IHttpActionResult Get(int parameterC)
        {
            // ...
            return Ok();
        }

        public IHttpActionResult Get()
        {
            // ...
            return Ok("Ok");
        }

        [HttpPost]
        public IHttpActionResult Post(AnotherModel model)
        {
            // ...
            return Ok();
        }
    }
}

```

Without any other changes both Api and OData controller works.

```
GET
http://localhost:4186/api/AnotherModels?parameterC=1

GET
http://localhost:4186/api/AnotherModels 

Post
http://localhost:4186/api/AnotherModels
{
"Id" : 1,
"MyInt" : 2,
"MyString" : "Hello"
}

GET
http://localhost:4186/odata/TestModels/MyNamespace.MyFunction(parA=1,parB=2)

```

I've also tried changing the "path" setting of web.config to \* but that's fine.
I suggest you create a new project from scratch and compare it with yours.