So I'm having a bit of a problem... the thing is that I have a base class that has implementation for all GET/POST/PUT/DELETE and it's a Generic class so basically whatever I Entity I update passes through there and then I have a class for my entities that implements that class...
public virtual async Task<IHttpActionResult> Put([FromODataUri] TKey key)
The thing is that for one of the Entities I want to implement additional logic before updating the database so I thought I just do it on the child class and then after that new logic I call the base class method and that should do the trick so I created an overloaded method
public override Task<IHttpActionResult> Put(int key){
//NEW LOGIC
return base.Put(key);
}
The problem that I'm having is that when I do the request from the Client, if I don't have this new method implemented it works fine and calls the base clase method and the Entity is updated but after I added this, using exactly the same ajax request it returns a 400 response... Can anyone help me out figuring out what's going on? Thanks a lot :)