public IEnumerable <ConsultarEmpresaPersonaLegalResponse> insert_update_persona_legal(int id_persona_legal, string documento, string telefono, string correo, string RUC, string USUARIO) { DB_GESDOCEntities _dataContext = base.Context.GetContext() as DB_GESDOCEntities; var result = from r in _dataContext.P_INSERT_UPDATE_MAE_ENTIDAD_PERSONA_LEGAL(id_persona_legal, documento, telefono, correo, RUC, USUARIO) select new ConsultarEmpresaPersonaLegalResponse() { id_persona_legal = r.ID_PERSONA_LEGAL }; return(result); }