public virtual async Task <HttpResponseMessage> Patch([FromBody] string json) { ExpandoObject expandoObject = JsonConvert.DeserializeObject <ExpandoObject>(json); Uow.ValidateOnSaveEnabled(false); Uow.GetRepositoryForEntityType <T>().Update(expandoObject); await Uow.CommitAsync(); return(new HttpResponseMessage(HttpStatusCode.NoContent)); }