System.ArgumentException System.InvalidOperationException System.NotImplementedException System.NotSupportedException System.ApplicationException
public class UserService:IUserService { /// <summary> /// Method to InsertUser /// </summary> /// <param name="Insertuserrequest"></param> /// <returns>InsertUserResponse</returns> public InsertUserResponse Insert(InsertUserRequest Insertuserrequest) { InsertUserResponse Insertuserresponse = null; try { Insertuserresponse = UserBLL.Insert(Insertuserrequest); } catch (BaseException ex) { throw new FaultException(ex.Summary); } return Insertuserresponse; } }
public class UserBLL { public static InsertUserResponse Insert(InsertUserRequest Insertuserrequest) { InsertUserResponse Insertuserresponse = new InsertUserResponse(); try { if (Insertuserrequest.user.Password != null) { Insertuserrequest.user.Password = EncryptPassword(Insertuserrequest.user.Password); Insertuserresponse = UserRepository.Insert(Insertuserrequest); } else { Insertuserresponse = UserRepository.Insert(Insertuserrequest); } } catch (Exception ex) { throw ex; } return Insertuserresponse; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)