public decimal GetTotalVideoByEquipment(int idVideo) { return(_context.VideoEquipment .Include("Equipment") .Include("Video") .Where(VideoEquipmentSpecs.GetTotalByEquipment(idVideo)).Sum(x => x.Video.Plan.ValueEquipmentMain));//verificar aqui a lógica }
public int GetVideoCountByEquipment(int idVideo) { return(_context.VideoEquipment .Where(VideoEquipmentSpecs.GetTotalByEquipment(idVideo)).Count());// não estou usando ***verificar }