public bool SaveService(ServiceDO s) { try { _objServiceDAL.SaveService(s.ServiceId, s.OrganizationId, s.ServiceName, s.InCharge, s.DepartmentId, s.Units, s.Mobile, s.LoginNew.EmailId, s.LoginNew.Password, s.LoginNew.TransactionToken, s.ReferenceToken, s.CountryId, s.IsActivated); return(true); } catch { return(false); } }
public ServiceDO GetServiceById(int serviceId) { DataTable dtService = _objServiceDAL.GetServiceById(serviceId); ServiceDO s = null; if (dtService.Rows.Count > 0) { LoginNewDO l = new LoginNewDO(); l.LoginId = Convert.ToInt32(dtService.Rows[0]["LoginId"].ToString()); l.MobileId = dtService.Rows[0]["MobileId"].ToString(); l.MedAppId = dtService.Rows[0]["MedAppId"].ToString(); l.EmailId = dtService.Rows[0]["EmailId"].ToString(); l.Password = "******"; l.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString()); l.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString()); s = new ServiceDO(); s.ServiceId = Convert.ToInt32(dtService.Rows[0]["ServiceId"].ToString()); s.OrganizationId = Convert.ToInt32(dtService.Rows[0]["OrganizationId"].ToString()); s.LoginNew = l; s.ServiceName = dtService.Rows[0]["ServiceName"].ToString(); s.InCharge = dtService.Rows[0]["InCharge"].ToString(); s.DepartmentId = Convert.ToInt32(dtService.Rows[0]["DepartmentId"].ToString()); s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString()); s.Mobile = dtService.Rows[0]["Mobile"].ToString(); s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString()); s.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString()); s.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString()); s.ReferenceToken = dtService.Rows[0]["ReferenceToken"].ToString(); s.CountryId = Convert.ToInt32(dtService.Rows[0]["CountryId"]); s.IsActivated = Convert.ToBoolean(dtService.Rows[0]["IsActivated1"]); } return(s); }
public ServiceDO GetService(string signInId) { DataTable dtService = _objServiceDAL.GetService(signInId); ServiceDO s = null; if (dtService.Rows.Count > 0) { LoginNewDO l = new LoginNewDO(); l.LoginId = Convert.ToInt32(dtService.Rows[0]["LoginId"].ToString()); l.MobileId = dtService.Rows[0]["MobileId"].ToString(); l.MedAppId = dtService.Rows[0]["MedAppId"].ToString(); l.EmailId = dtService.Rows[0]["EmailId"].ToString(); l.Password = "******"; l.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString()); l.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString()); s = new ServiceDO(); s.ServiceId = Convert.ToInt32(dtService.Rows[0]["ServiceId"].ToString()); s.OrganizationId = Convert.ToInt32(dtService.Rows[0]["OrganizationId"].ToString()); s.LoginNew = l; s.ServiceName = dtService.Rows[0]["ServiceName"].ToString(); s.InCharge = dtService.Rows[0]["InCharge"].ToString(); s.DepartmentId = Convert.ToInt32(dtService.Rows[0]["DepartmentId"].ToString()); s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString()); s.Mobile = dtService.Rows[0]["Mobile"].ToString(); s.Units = Convert.ToInt32(dtService.Rows[0]["Units"].ToString()); s.CreatedOn = Convert.ToDateTime(dtService.Rows[0]["CreatedOn"].ToString()); s.IsDeleted = Convert.ToBoolean(dtService.Rows[0]["IsDeleted"].ToString()); s.ReferenceToken = dtService.Rows[0]["ReferenceToken"].ToString(); s.CountryId = Convert.ToInt32(dtService.Rows[0]["CountryId"]); s.IsActivated = Convert.ToBoolean(dtService.Rows[0]["IsActivated1"]); } return s; }
public bool SaveService(ServiceDO s) { try { _objServiceDAL.SaveService(s.ServiceId, s.OrganizationId, s.ServiceName, s.InCharge, s.DepartmentId, s.Units, s.Mobile, s.LoginNew.EmailId, s.LoginNew.Password, s.LoginNew.TransactionToken, s.ReferenceToken, s.CountryId, s.IsActivated); return true; } catch { return false; } }