public async Task <IActionResult> CreateApproveWithExceptDetails([FromBody] ApproveWithExceptDetailsMqr appExMqr)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            await _service.InsertAsync(appExMqr);

            await _service.SaveChangesAsync();

            return(Ok(appExMqr));
        }
        public async Task Delete(ApproveWithExceptDetailsMqr appExMqr)
        {
            var appexmqrData = await maefRepo.GetFirstOrDefaultAsync(predicate : c => c.Id == appExMqr.MAEFId);

            appExMqr.AuditLogGroupId = appexmqrData.AuditLogGroupId;
            appExMqr.HistoryGroupId  = Guid.NewGuid();

            await historyRepo.InsertAsync(new History {
                date            = DateTime.Now,
                action          = "Approved With Exception Details MQR Deleted",
                groupCode       = role,
                user            = user,
                RequestId       = appexmqrData.Id,
                AuditLogGroupId = appExMqr.AuditLogGroupId,
                HistoryGroupId  = appExMqr.HistoryGroupId
            });

            appExMqrRepo.Delete(appExMqr);
        }