//[ValidateAntiForgeryToken] public IActionResult CreateUser(User user) { DateTime currentDate = DateTime.Now; user.CreateDate = currentDate; var result = userBUS.CreateUser(user); return(Ok(result)); }
public static int CreateUser(User u) { return(UserBUS.CreateUser(u)); }