[HttpPost] /*POSTMAN OK*/ public IActionResult Create([FromBody] D.Lunch entity) { switch (_lunchRepo.Create(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)); } }