public async Task <ActionResult <DataSheet> > Get(long id) { var data = await service.GetDataSheet(id, UserData.CorpClientId.Value); if (data != null) { return(Ok(data)); } return(NoContent()); }
public JsonResult GetDataSheet(int month, int year) { var dateSheet = _dataSheetService.GetDataSheet(month, year).OrderBy(x => x.Date); return(Json(dateSheet, JsonRequestBehavior.AllowGet)); }