public async Task <bool> DeleteUsers(UserDetails userDetail) { bool isDeleted = false; isDeleted = await sqlDBContext.Add_Delete_Modify_User(userDetail, (int)ActionType.DELETE); return(isDeleted); }
public async Task <bool> Registration(UserDetails userDetail) { bool isRegistered = false; if (sqlDBContext.CheckUserExists(userDetail.emailId).Result) { isRegistered = await sqlDBContext.Add_Delete_Modify_User(userDetail, (int)ActionType.ADD); } return(isRegistered); }