예제 #1
0
        //[ValidateAntiForgeryToken]
        public IActionResult CreateUser(User user)
        {
            DateTime currentDate = DateTime.Now;

            user.CreateDate = currentDate;
            var result = userBUS.CreateUser(user);

            return(Ok(result));
        }
예제 #2
0
 public static int CreateUser(User u)
 {
     return(UserBUS.CreateUser(u));
 }