Example #1
0
 public Task <dynamic> CreateNewUser(User user)
 {
     return(db.BasicQueryOperation(new
     {
         EMAIL = user.Email,
         FIRSTNAME = user.FirstName ?? "",
         LASTNAME = user.LastName ?? "",
         PHONE = user.Phone,
         PASSWORD = user.Password,
         ROLE = user.Role,
         VERIFICATIONCODE = user.VerificationCode,
         VERIFIED = user.Verified,
         ACTIVE = user.Active,
         CREATEDBY = user.CreatedBy,
         CREATEDON = user.CreatedOn
     }, AddNewUserSp));
 }