Example #1
0
        public ActionResult <DeleteWrapperResponse> DeleteTimesheet([FromRoute] int id)
        {
            var code      = HttpStatusCode.OK;
            var message   = $"{Constants.Message.TimesheetDeletedMessage}";
            var timesheet = _ITimesheetService.DeleteTimesheet(id);
            var source    = $"{Constants.Source.TimesheetPrefixName}";

            try
            {
                return(new DeleteWrapperResponse(code, message, timesheet, source));
            }
            catch
            {
                return(NotFound());
            }
        }