public List <problem_image> GetAllProblemImageByProblemId(int problemId) { return(ProblemImageRepository.FindBy(p => p.problem_id == problemId).ToList()); }
public void DeleteProblemImage(int id) { ProblemImageRepository.Delete(id); }
public void SaveListProblemImage(List <problem_image> listImage) { ProblemImageRepository.SaveList(listImage); }