public void AddStandCommercial([FromBody] int[] commercialIdAndStandId) { var repository = new StandCommercialRepository(); // repository.AddStandCommercial(commercialId,standId); repository.AddStandCommercial(commercialIdAndStandId[0], commercialIdAndStandId[1]); }
public int UpdateCommercial([FromBody] Commercial commercial) { var repository = new StandCommercialRepository(); return(repository.UpdateCommercial(commercial)); }
public IEnumerable <Commercial> GetListCommercialCurrentStand(int standId) { var repository = new StandCommercialRepository(); return(repository.GetCommercialCurrentStand(standId)); }
public Commercial GetCommercial(int id) { var repository = new StandCommercialRepository(); return(repository.GetCommercial(id)); }
public IEnumerable <Commercial> GetListAllCommercials() { var repository = new StandCommercialRepository(); return(repository.GetAllCommercials()); }
public void DeleteStandCommercial(int idCommercial, int idStand) { var temp = new StandCommercialRepository(); temp.DeleteStandCommercial(idCommercial, idStand); }
public int DeleteStand(int idStand) { var repository = new StandCommercialRepository(); return(repository.DeleteStand(idStand)); }
public int UpdateStand([FromBody] Stand stand) { var repository = new StandCommercialRepository(); return(repository.UpdateStand(stand)); }