public string ValidateDoctorLogOn(DoctorLogonViewModel doctorLogOnViewModel) { if (!Validator.EmailValidation(doctorLogOnViewModel.Email)) { return("Invalid Email"); } if (string.IsNullOrEmpty(doctorLogOnViewModel.Password)) { return("Invalid Password"); } return(string.Empty); }
public string ValidateDoctorDevice(DoctorLogonViewModel doctorLogOnViewModel) { if (doctorLogOnViewModel.Id <= 0) { return("Invalid Doctor Id"); } if (string.IsNullOrEmpty(doctorLogOnViewModel.DeviceId)) { return("Invalid Device Id"); } return(string.Empty); }
public DoctorLogOnModel Map(DoctorLogonViewModel logOnViewModel) { return(new DoctorLogOnModel() { Email = logOnViewModel.Email, Password = logOnViewModel.Password, PhoneNumber = logOnViewModel.PhoneNumber, LoginLocation = logOnViewModel.LoginLocation, LoginDate = logOnViewModel.LoginDate, RequestURL = logOnViewModel.RequestURL, TenantID = logOnViewModel.TenantID, CreatedByEntity = logOnViewModel.CreatedByEntity, DeviceId = logOnViewModel.DeviceId }); }