public BllImage MapToBll(DalImage entity) { BllImage bllEntity = new BllImage { Id = entity.Id, Image = entity.Image }; return(bllEntity); }
public DalImage MapToDal(BllImage entity) { DalImage dalEntity = new DalImage { Id = entity.Id, Image = entity.Image }; return(dalEntity); }
public static DalImage ToDalImage(this BllImage bllImage) { return(new DalImage() { Id = bllImage.Id, Name = bllImage.Name, Type = bllImage.Type, Size = bllImage.Size, Content = bllImage.Content, }); }
public FileStreamResult GetImage(int id) { BllImage image = imageService.GetImage(id); return(new FileStreamResult(image.Content, "image//" + image.Content)); }