public IActionResult UpdatePartial(int id, [FromBody] dynamic customer, [FromServices] CustomerDb db) { int rowsAffected = _dao.UpdatePartial(id, customer, db); if (rowsAffected <= 0) { return(StatusCode((int)HttpStatusCode.InternalServerError, new { error = "error occurred while partially updating customer" })); } return(Ok()); }