[HttpPut] /*POSTMAN OK*/ public IActionResult Update([FromBody] D.Lunch entity) { switch (_lunchRepo.Update(entity)) { case (DBErrors.Success): return(Ok()); case (DBErrors.NullExeption): return(Problem("A mandatory field does not support 'null' value or is missing", statusCode: (int)HttpStatusCode.BadRequest)); default: return(Problem("?", statusCode: (int)HttpStatusCode.NotFound)); } }
public bool Update(int id) { return(lunchRepo.Update(id)); }