Ejemplo n.º 1
0
        public async Task <IActionResult> AwaitingApproval()
        {
            var Result  = new RecordApprovalModel();
            var Records = await recordRepo.GetRecordsAwaitingApproval();

            if (Records.WasSuccessful)
            {
                Result.Records = Records.Result;
            }

            return(View(Result));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> ApproveRecordsAsync([FromBody] RecordApprovalModel model)
        {
            var Result = await recordRepo.ApproveRecords(model.IDs);

            if (Result.WasSuccessful)
            {
                return(Ok(Result));
            }
            else
            {
                return(Ok(Result));
            }
        }