public IActionResult ActiveReceipt(int id)
        {
            var modelId = _receiptService.GetSingleById(id);

            modelId.Status = true;
            _receiptService.Update(modelId);

            var model = _receiptService.GetAll();

            var result = _mapper.Map <IEnumerable <ReceiptNote>, IEnumerable <ReceiptNoteViewModel> >(model);

            return(PartialView("_ReceiptPartial", result));
        }
Exemple #2
0
 public ReceiptNoteEntity Update(Guid ReceiptNoteId, [FromBody]ReceiptNoteEntity ReceiptNoteEntity)
 {
     return ReceiptNoteService.Update(EmployeeEntity, ReceiptNoteId, ReceiptNoteEntity);
 }