public async void updateImage([FromBody] ImageViewModel model)
        {
            Images img = new Images();

            img.BoardId = model.BoardId;
            img.Id      = model.Id;
            img.Index   = model.Index;
            if (model.files.Length > 0)
            {
                using (var stream = new MemoryStream())
                {
                    await model.files.CopyToAsync(stream);

                    img.Image = stream.ToArray();
                }
            }
            db.images.Update(img);
            db.SaveChanges();
        }
        public ActionResult <api2.models.Project> CreateImage([FromForm] api2.models.ImageViewModel Img)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    ITaskrepo.createImage(Img);
                    return(Ok());
                }
                else
                {
                    return(BadRequest("Some properties are not valid"));
                }
            }

            catch
            {
                return(BadRequest("Some properties are not valid"));
            }
        }