public IActionResult GetHandymen([FromBody] Calendar c) { Dictionary <string, object> res; try { res = Service.createSuccessRes(); res.Add("Handymen", CalendarData.GetHandymen(c)); return(Ok(res)); } catch (System.Exception ex) { res = Service.createErrorRes(ex.Message); return(BadRequest(res)); } }