public async Task <IHttpActionResult> GetStampe(BaseRequest <StampaDto> model)
        {
            try
            {
                var result = await _logic.GetStampe(model, Request.RequestUri);

                return(Ok(result));
            }
            catch (Exception e)
            {
                Log.Error("JOB - GetStampe", e);
                return(ErrorHandler(e));
            }
        }
Beispiel #2
0
        public async Task <IHttpActionResult> GetStampe(BaseRequest <StampaDto> model)
        {
            try
            {
                var session = await GetSession();

                var persona = await _logicPersone.GetPersona(session);

                var result = await _logic.GetStampe(model, persona, Request.RequestUri);

                return(Ok(result));
            }
            catch (Exception e)
            {
                Log.Error("GetStampe", e);
                return(ErrorHandler(e));
            }
        }