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)); }
public ReceiptNoteEntity Update(Guid ReceiptNoteId, [FromBody]ReceiptNoteEntity ReceiptNoteEntity) { return ReceiptNoteService.Update(EmployeeEntity, ReceiptNoteId, ReceiptNoteEntity); }