public WriteOffReason Update(WriteOffReason entity) { var value = entity; unitOfWork.WriteOffReasonRepository.Update(value); return(entity); }
public WriteOffReason Create(WriteOffReason entity) { var valueToInsert = entity; unitOfWork.WriteOffReasonRepository.Add(valueToInsert); unitOfWork.SaveTablesChanges("dbo.Write_off_Reason"); entity.Id = valueToInsert.Id; return(entity); }