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); }
public bool Update(PrecioAccesorio model) { throw new NotImplementedException(); }