public SuccessUserMessage CheckUser(string username) { SuccessUserMessage objuser = new SuccessUserMessage(); try { return(_caseService.CheckUser(username)); } catch (Exception ex) { objuser.Status = false; objuser.Message = ex.Message.ToString(); return(objuser); } }