public ActionResult Edit(RelationalPerson relationalPerson)
 {
     try
     {
         // TODO: Add update logic here
         _relationalPersonService.Update(new  RelationalPerson
         {
             //Alanlar buraya yazılacak Id alanı en altta olacak unutmayın!!!
             //Örn:BrandName = brand.BrandName,
             //BrandId = brand.BrandId
         });
         SuccessNotification("Kayıt Güncellendi");
         return(RedirectToAction("RelationalPersonIndex"));
     }
     catch
     {
         return(View());
     }
 }
 public void Delete(RelationalPerson relationalPerson)
 {
     _relationalPersonDal.Delete(relationalPerson);
 }
 public void Update(RelationalPerson relationalPerson)
 {
     _relationalPersonDal.Update(relationalPerson);
 }
 public RelationalPerson Add(RelationalPerson relationalPerson)
 {
     return(_relationalPersonDal.Add(relationalPerson));
 }
        public ActionResult Delete(int id, RelationalPerson relationalPerson)
        {
            var data = AutoMapperHelper.MapToSameViewModel <RelationalPerson, RelationalPersonViewModel>(_relationalPersonService.GetById(id));

            return(View(data.ToVM()));
        }