コード例 #1
0
        public bool ExisteIdArea(short IdArea, short IdEstado)
        {
            bool retorno = false;

            SiniestrosSeguros.DTO.ModelCustoms.Area.Areas C = null;
            C = (from e in context.SP_S_Area(IdEstado).ToList()
                 where e.IdArea == IdArea
                 select new SiniestrosSeguros.DTO.ModelCustoms.Area.Areas()
            {
                IdArea = e.IdArea
            }).FirstOrDefault();

            if (C != null)
            {
                retorno = true;
            }

            return(retorno);
        }