Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        public JsonResult GetDataSheet(int month, int year)
        {
            var dateSheet = _dataSheetService.GetDataSheet(month, year).OrderBy(x => x.Date);

            return(Json(dateSheet, JsonRequestBehavior.AllowGet));
        }