Exemple #1
0
        public PrecioAccesorio GetByDate(int accesorioId, DateTime fecha)
        {
            var result = new PrecioAccesorio();

            try
            {
                result = _texereDbContext.PrecioAccesorio.Where(x => x.Accesorio.AccesorioId == accesorioId && x.FechaVigencia <= fecha).OrderByDescending(x => x.FechaVigencia).FirstOrDefault();
            }
            catch (Exception)
            {
            }

            return(result);
        }
Exemple #2
0
 public bool Update(PrecioAccesorio model)
 {
     throw new NotImplementedException();
 }