Example #1
0
        public async Task <IHttpActionResult> PostRequest(TimesheetRequestDTO request)
        {
            try
            {
                var result = await _timesheetService.AddRequest(request);

                return(this.JsonDataResult(result));
            }
            catch (Exception e)
            {
                //Logger.Log(LogLevel.Error, e);
                return(new InternalServerErrorResult(this));
            }
        }