Exemple #1
0
        public async Task <IActionResult> OnGetAceptar(int idB, string comentario)
        {
            try
            {
                await liquidaciones.CambiaEstado(idB, "A", comentario, int.Parse(((ClaimsIdentity)User.Identity).Claims.Where(d => d.Type == ClaimTypes.Actor).Select(s1 => s1.Value).FirstOrDefault()));

                return(new JsonResult(true));
            }
            catch (Exception ex)
            {
                return(new JsonResult(ex.Message));
            }
        }
        public async Task <IActionResult> OnGetEstado(int idB)
        {
            try
            {
                await liquidaciones.CambiaEstado(idB, "E", "");

                return(new JsonResult(true));
            }
            catch (Exception ex)
            {
                return(new JsonResult(ex.Message));
            }
        }