public IActionResult Add(Person entity) { Person added = _PersonDal.Add(entity); if (added != null && added.Id > 0) { return(Ok(added)); } else { return(BadRequest("Ekleme işlemi başarısız oldu!")); } }
public bool Add(Person entity) { try { CheckPassword(entity.Password); CheckTCKN(entity.TCKN); entity.IsActive = false; return(_personDAL.Add(entity) > 0); } catch (Exception ex) { throw ex; } }
public void Insert(Person entity) { _dal.Add(entity); }
public void AddPerson(Person person) { _personDAL.Add(person); _companyDAL.AddCompany("test"); }
public void Add(Persons person) { _personDAL.Add(person); }