public AAASSOS GetById(int id) { try { using (AAASSOSRepository ASRepo = new AAASSOSRepository()) { AAASSOS ASModel = new AAASSOS(); { ASModel = ASRepo.Get <AAASSOS>(id); return(ASModel); } } } catch (Exception ex) { throw ex; } }
public bool Delete(int id) { try { using (AAASSOSRepository ASRepo = new AAASSOSRepository()) { var ASExisting = ASRepo.Get <AAASSOS>(id); if (ASExisting == null) { return(false); } else { ASRepo.Delete <AAASSOS>(id); return(true); } } } catch (Exception ex) { throw ex; } }