/// <summary> /// Obtener cantidad de registros de ConsecutiveConfig /// Autor: Jair Guerrero /// Fecha: 2021-02-24 /// </summary> public int Count() { try { IRepository <ConsecutiveConfig> repo = new ConsecutiveConfigRepo(context); return(repo.Count()); } catch (Exception ex) { throw new Exception(ex.Message, ex.InnerException); } }
/// <summary> /// Obtener cantidad de registros de ConsecutiveConfig segĂșn filtro /// Autor: Jair Guerrero /// Fecha: 2021-02-24 /// </summary> public int Count(Expression <Func <ConsecutiveConfigAM, bool> > predicate) { try { var where = mapper.MapExpression <Expression <Func <ConsecutiveConfig, bool> > >(predicate); IRepository <ConsecutiveConfig> repo = new ConsecutiveConfigRepo(context); return(repo.Count(where)); } catch (Exception ex) { throw new Exception(ex.Message, ex.InnerException); } }