public static Register UserRegistration(Register newRegister) { if (!USERDataLinker.IfEmailIsUnique(newRegister.Email)) { // Email is not unique return(null); } else { Register isUserAddedSuccessfully = USERDataLinker.AddUser(newRegister); //{ // //EmailId = email, // //Password = password, // //Username= userName, // //FirstName = firstName, // //LastName = lastName, // //ImageUrl = imageURL, // //MobileNo = phoneNumber, // //Country = country //}); if (isUserAddedSuccessfully != null) { return(isUserAddedSuccessfully); } else { return(null); } } }