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); } }
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; } }
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); } }