public ActionResult Post([FromBody] DtoCheckNewSocial_ID obj) { var repo = new DapperUserRepository(); var srv = new SrvCheckNewSocial_IDV1(repo) { _doNotSendEmail = this._doNotSendEmail }; if (!srv.Exec(network, obj)) { return(BadRequest(srv.Error)); } return(Ok(new { })); }
public void UserCantExist() { #region - code - var network = new LocalNetwork() { sqlServer = connStr }; var repo = new FakeRepo_User(); var srv = new SrvCheckNewSocial_IDV1(repo); if (srv.Exec(network, new DtoCheckNewSocial_ID { sID = "1", _language = 0 })) { Assert.Fail(); } #endregion }