示例#1
0
 public int Add(InternetUserDto prod)
 {
     using (IDbConnection dbConnection = Connection)
     {
         return(dbConnection.Execute(InternetUserQueries.Add, prod));
     }
 }
示例#2
0
 public bool Add(InternetUserDto internetUser)
 {
     if (_internetUserRepository.Add(internetUser) != 0)
     {
         return(true);
     }
     return(false);
 }
 public IActionResult Post([FromBody] InternetUserDto value)
 {
     if (ModelState.IsValid)
     {
         if (_internetUserService.Add(value))
         {
             return(Ok());
         }
     }
     return(BadRequest());
 }