public bool InsertAraba(Araba entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new ArabaRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         throw new Exception("SOABusiness:ArabaBusiness::InsertAraba::Error occured.", ex);
     }
 }
示例#2
0
        private void setarabalar(object sender, EventArgs e)
        {
            try
            {
                Araba entity = new Araba
                {
                    Plaka   = txt_Plaka.Text,
                    InsanId = (int)cmbMusteriBilgileri.SelectedValue,
                };

                bool result = arabaBilgisiRepository.Insert(entity);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#3
0
 public bool InsertAraba(Araba entity)
 {
     try
     {
         bool isSuccess;
         using (var repo = new ArabaRepository())
         {
             isSuccess = repo.Insert(entity);
         }
         return(isSuccess);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:ArabaBusiness::InsertAraba::Error occured.", ex);
     }
 }