public async Task <IHttpActionResult> PostTimesheet([FromBody] EmployeeTimesheet esheet) { try { var result = await _timesheetService.AddTimeSheet(esheet); return(this.JsonDataResult(result)); } catch (Exception e) { //Logger.Log(LogLevel.Error, e); return(new InternalServerErrorResult(this)); } }