public HttpResponseMessage GetAgencyDetails([FromBody] Agency agency) { try { var result = agency.GetAgencyByID(); HttpResponseMessage msg = responceFactory.GetResponseMsg(Request, result); return(msg); } catch (Exception ex) { return(ExcptionHandler.OnActionException(Request, ex)); } }