//CREA CAPTURAS DE PANATALLA DE LOS USUARIOS public object CreateCapture(CaptureModel o) { Response rp = new Response(); try { cp = tvh.getprincipal(Convert.ToString(o.token)); if (cp != null) { string empresa = cp.Claims.Where(c => c.Type == ClaimTypes.GroupSid).Select(c => c.Value).SingleOrDefault(); CaptureBase cb = new CaptureBase(); o.IdCompany = empresa; Copier.CopyPropertiesTo(o, cb); if (cb != null) { bool response = opc.AddCapture(cb); if (response) { rp.response_code = GenericErrors.SaveOk.ToString(); } else { rp = autil.ReturnMesagge(ref rp, (int)GenericErrors.GeneralError, string.Empty, null, HttpStatusCode.InternalServerError); } List <CaptureBase> getimage = opc.GeImage(empresa); } } } catch (Exception ex) { //error general rp = autil.ReturnMesagge(ref rp, (int)GenericErrors.GeneralError, ex.Message + " " + ex.InnerException, null, HttpStatusCode.InternalServerError); return(rp); } return(rp); }