public int Add(InternetUserDto prod) { using (IDbConnection dbConnection = Connection) { return(dbConnection.Execute(InternetUserQueries.Add, prod)); } }
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()); }