public JsonResult GetFile(int ID) { var imagen = Mapper.Map <ImagenModel>(pacienteService.GetFile(ID)); Response.StatusCode = (int)HttpStatusCode.OK; return(Json(imagen, JsonRequestBehavior.AllowGet)); }