Example #1
0
 public IHttpActionResult GetSystemSettingById(int id)
 {
     try
     {
         var role = _systemSettingervice.GetSystemSettings(x => x.Id == id).FirstOrDefault();
         return(Ok(role));
     }
     catch (Exception ex)
     {
         return(ResponseMessage(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)));
     }
 }