public IList <SResponsability> GetAll() { return(ResponsabilityRepository .GetAll() .Select(SResponsability.DtoS) .ToList()); }
public BookDetails GetDetails(Guid id) { SBook book = GetSingle(id); var model = new BookDetails { Book = book, Responsabilities = ResponsabilityRepository.GetList(r => r.BookId == book.Id).Select(SResponsability.DtoS).ToList(), Notes = NoteRepository.GetList(n => n.BookId == book.Id).Select(SNote.DtoS).ToList() }; return(model); }
public void Delete(Guid id) { ResponsabilityRepository.Delete(id); }
public void Update(SResponsability entity) { ResponsabilityRepository.Update(SResponsability.StoD(entity)); }
public void Add(SResponsability entity) { ResponsabilityRepository.Add(SResponsability.StoD(entity)); }
public SResponsability GetSingle(Guid id) { var entity = ResponsabilityRepository.GetSingle(id); return(SResponsability.DtoS(entity)); }