public void Delete(int id) { acct_company deleteResoult = this.unitOfWork.Repository <acct_company>().GetByID(id); this.unitOfWork.Repository <acct_company>().Delete(deleteResoult); }
public CompanyView GetByID(object id) { acct_company result = this.unitOfWork.Repository <acct_company>().GetByID(id); return(Mapper.Map <CompanyView>(result)); }