public IEnumerable <tblImageDetail> Get() { // ingerit from the ImageModel created using (APIImagesEntities entities = new APIImagesEntities()) { return(entities.tblImageDetails.ToList()); } }
public tblImageDetail Get(string id) { // inherit from the ImageModel created using (APIImagesEntities entities = new APIImagesEntities()) { return(entities.tblImageDetails.FirstOrDefault(img => img.id == id)); } }
public tblImageDetail Get(string imageLocation) { // inherit from the ImageModel created using (APIImagesEntities entities = new APIImagesEntities()) { return(entities.tblImageDetails.FirstOrDefault(imgLoc => imgLoc.ImageLocation == imageLocation)); } }