コード例 #1
0
        public long CreateUser(UserLoginMstDto model)
        {
            ObjectParameter obj      = new ObjectParameter("resultId", typeof(Int32));
            long            resultId = 0;

            _IOTLoggerEntities.sp_CreateUpdateUserLogin(model.UserId, model.RoleId, model.Name, model.Address,
                                                        model.EmailId, model.MobileNo, model.UserName, model.Password, model.EncryptPwd, model.IsActive, model.Status,
                                                        "LoginBy", obj);
            if (obj != null)
            {
                resultId = Convert.ToInt32(obj.Value);
            }
            return(resultId);
        }
コード例 #2
0
        public long CreateUpdatedUser(AddUser model)
        {
            UserLoginMstDto userMasterDto = new UserLoginMstDto();

            try
            {
                Mapper.CreateMap <AddUser, UserLoginMstDto>();
                userMasterDto = Mapper.Map <AddUser, UserLoginMstDto>(model);
                return(_userAdapter.CreateUser(userMasterDto));
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }