public IssueNote(IssueNoteEntity IssueNoteEntity) : base(IssueNoteEntity) { if (IssueNoteEntity.IssueNoteLineEntities != null) { this.IssueNoteLines = new HashSet <IssueNoteLine>(); foreach (IssueNoteLineEntity IssueNoteLineEntity in IssueNoteEntity.IssueNoteLineEntities) { IssueNoteLineEntity.IssueNoteId = IssueNoteEntity.Id; this.IssueNoteLines.Add(new IssueNoteLine(IssueNoteLineEntity)); } } }
public IssueNoteEntity Create(EmployeeEntity EmployeeEntity, IssueNoteEntity IssueNoteEntity) { if (IssueNoteEntity == null) { throw new NotFoundException(); } IssueNote IssueNote = new IssueNote(IssueNoteEntity); UnitOfWork.IssueNoteRepository.AddOrUpdate(IssueNote); UnitOfWork.Complete(); return(Get(EmployeeEntity, IssueNote.Id)); }
public IssueNoteEntity Update(EmployeeEntity EmployeeEntity, Guid IssueNoteId, IssueNoteEntity IssueNoteEntity) { IssueNoteEntity.Id = IssueNoteId; IssueNote IssueNote = new IssueNote(IssueNoteEntity); UnitOfWork.IssueNoteRepository.AddOrUpdate(IssueNote); UnitOfWork.Complete(); return(Get(EmployeeEntity, IssueNote.Id)); }
public IssueNoteEntity Update(Guid IssueNoteId, [FromBody] IssueNoteEntity IssueNoteEntity) { return(IssueNoteService.Update(EmployeeEntity, IssueNoteId, IssueNoteEntity)); }
public IssueNoteEntity Create([FromBody] IssueNoteEntity IssueNoteEntity) { return(IssueNoteService.Create(EmployeeEntity, IssueNoteEntity)); }