public IMOUsers PushUserDetails(IMOUsers objIMOUsers) { TpServiceLog tpServiceLog = new TpServiceLog(); tpServiceLog.ServiceRequest = Newtonsoft.Json.JsonConvert.SerializeObject(objIMOUsers); TransactLog transactLog = new TransactLog(); transactLog.SerivceTraceID = tpServiceLog.ServiceTraceID = objIMOUsers.ServiceTraceID; transactLog.UserName = objIMOUsers.CreatedBy; string Message = ValidateUserAuth(transactLog); if (Message != "" && Message != null) { objIMOUsers.Message = Message; return(objIMOUsers); } UserManagementBusiness objUserManagementBusiness = new UserManagementBusiness(); objIMOUsers = objUserManagementBusiness.FilltblMasIMOUserDetails(objIMOUsers); tpServiceLog.ServiceResponse = Newtonsoft.Json.JsonConvert.SerializeObject(objIMOUsers); commonBusiness.CreateServiceLog(tpServiceLog); return(objIMOUsers); }
public IMOUsers PushUserDetails(IMOUsers objIMOUsers) { try { objIMOUsers = objUserManagementBusiness.FilltblMasIMOUserDetails(objIMOUsers); return(objIMOUsers); } catch (Exception ex) { objIMOUsers.StatusCode = "500"; return(objIMOUsers); } }