Пример #1
0
        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);
 }
Пример #4
0
 public void AddPerson(Person person)
 {
     _personDAL.Add(person);
     _companyDAL.AddCompany("test");
 }
Пример #5
0
 public void Add(Persons person)
 {
     _personDAL.Add(person);
 }