Exemple #1
0
        public UpdateRestaurantResponse UpdateRestaurant([FromBody] UpdateRestaurantRequest request)
        {
            try
            {
                var restaurant = context.Restaurants.FirstOrDefault(p => p.RestaurantId == request.RestaurantId && p.Active == true);
                if (restaurant != null)
                {
                    var basePath  = "upload\\restaurant";
                    var imagePath = basePath + "\\" + request.ImageName;

                    restaurant.RestaurantName    = request.RestaurantName ?? "";
                    restaurant.RestaurantAddress = request.RestaurantAddress ?? "";
                    restaurant.RestaurantEmail   = request.RestaurantEmail ?? "";
                    restaurant.RestaurantPhone   = request.RestaurantPhone ?? "";
                    restaurant.Longitude         = request.Longitude ?? null;
                    restaurant.Latitude          = request.Latitude ?? null;
                    if (request.ImageName != null && request.ImageName.Length > 0)
                    {
                        restaurant.ImagePath = imagePath;
                        restaurant.ImageType = request.ContentType;
                    }
                    context.Restaurants.Update(restaurant);
                    if (request.ImageName != null && request.ImageName.Length > 0)
                    {
                        #region create image
                        string contentRootPath = _webHostEnvironment.ContentRootPath;
                        var    path            = Path.Combine(contentRootPath, imagePath);

                        UploadAdapter.UploadImage(basePath, request.ImageName, request.Base64Value);
                        #endregion
                    }
                    context.SaveChanges();
                    context.Dispose();
                }
                else
                {
                    return(new UpdateRestaurantResponse
                    {
                        StatusCode = (int)HttpStatusCode.BadRequest
                    });
                }
                return(new UpdateRestaurantResponse
                {
                    StatusCode = (int)HttpStatusCode.OK
                });
            }
            catch (Exception e)
            {
                return(new UpdateRestaurantResponse
                {
                    StatusCode = (int)HttpStatusCode.BadRequest
                });
            }
        }
Exemple #2
0
        public CreateRestaurantResponse CreateRestaurant([FromBody] CreateRestaurantRequest request)
        {
            try
            {
                if (request != null)
                {
                    var basePath  = "upload\\restaurant";
                    var imagePath = basePath + "\\" + request.ImageName;

                    var newRestaurant = new Restaurant
                    {
                        RestaurantName    = request.RestaurantName ?? "",
                        RestaurantAddress = request.RestaurantAddress ?? "",
                        RestaurantEmail   = request.RestaurantEmail ?? "",
                        RestaurantPhone   = request.RestaurantPhone ?? "",
                        Longitude         = request.Longitude ?? null,
                        Latitude          = request.Latitude ?? null,
                        ImagePath         = imagePath,
                        ImageType         = request.ContentType
                    };
                    context.Restaurants.Add(newRestaurant);

                    #region create image
                    string contentRootPath = _webHostEnvironment.ContentRootPath;
                    var    path            = Path.Combine(contentRootPath, imagePath);
                    UploadAdapter.UploadImage(basePath, request.ImageName, request.Base64Value);
                    #endregion
                    context.SaveChanges();
                    context.Dispose();
                }
                else
                {
                    return(new CreateRestaurantResponse
                    {
                        StatusCode = (int)HttpStatusCode.BadRequest
                    });
                }
                return(new CreateRestaurantResponse
                {
                    StatusCode = (int)HttpStatusCode.OK
                });
            }
            catch (Exception e)
            {
                return(new CreateRestaurantResponse
                {
                    StatusCode = (int)HttpStatusCode.BadRequest
                });
            }
        }
Exemple #3
0
        public CreateItemResponse CreateItem(CreateItemRequest request)
        {
            try
            {
                if (request != null)
                {
                    var basePath  = "upload\\item";
                    var imagePath = basePath + "\\" + request.ImageName;

                    var newItem = new Item
                    {
                        ItemName        = request.ItemName ?? null,
                        RestaurantId    = request.RestaurantId ?? null,
                        ItemDescription = request.ItemDescription ?? "",
                        ItemPrice       = request.ItemPrice ?? null,
                        ItemCategoryId  = request.ItemCategoryId ?? null,
                        MainImagePath   = imagePath,
                        ImageType       = request.ContentType
                    };
                    context.Items.Add(newItem);
                    context.SaveChanges();
                    context.Dispose();

                    #region create image
                    string contentRootPath = _webHostEnvironment.ContentRootPath;
                    var    path            = Path.Combine(contentRootPath, imagePath);
                    UploadAdapter.UploadImage(basePath, request.ImageName, request.Base64Value);
                    #endregion
                }
                else
                {
                    return(new CreateItemResponse
                    {
                        StatusCode = (int)HttpStatusCode.BadRequest
                    });
                }
                return(new CreateItemResponse
                {
                    StatusCode = (int)HttpStatusCode.OK
                });
            }
            catch (Exception e)
            {
                return(new CreateItemResponse
                {
                    StatusCode = (int)HttpStatusCode.BadRequest
                });
            }
        }
        public UploadImageResponse UploadImage([FromBody] UploadImageRequest request)
        {
            try
            {
                string contentRootPath = _webHostEnvironment.ContentRootPath;
                var    path            = Path.Combine(contentRootPath, "upload");
                var    imageName       = "test" + ".jpg";
                var    imageBase64     = "/9j/4AAQSkZJRgABAQAAAQABAAD/4QAqRXhpZgAASUkqAAgAAAABADEBAgAHAAAAGgAAAAAAAABHb29nbGUAAP/bAIQAAwICCAgICQgICAUFBQYHBwcHBgYHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHCgcHBwgJCQkHBwsNCggNBwgJCAEDBAQGBQYKBgYKCAcHCA0ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI/8AAEQgB2AFiAwERAAIRAQMRAf/EAB0AAQACAwEBAQEAAAAAAAAAAAAEBQIDBgcIAQn/xABHEAABAgQEAwYDBAcGAwkAAAACAAEDBBESBSEiMgYxQgcTQVJicghRkhRhgqIJFSMzQ3GyFhdTc8LSY4HwNIORk6Gjs8Pi/8QAGwEBAAIDAQEAAAAAAAAAAAAAAAIDAQQFBgf/xAAtEQEAAgICAgIBAwQBBQEAAAAAAQIDEQQSBSETMUEUIjIjM1GBYQYkQnGRFv/aAAwDAQACEQMRAD8A/qmgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD8QEH6gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg/KrG2Pb8cmTbDEorNzdk2aft7fNNmn53zVpVq/JNp6ZOybYLVljZahtkjIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgrcX4ggQBc40WFABuqIVqM6eIcWfGzgkqbg8wMYmK39mhp4Vx5+k4gwycZOWKKA/xIiq23PheFcc/pC8WmSugEMtCuC2GKbZ+FyXE/wAb2NTNgtHKBZZqHqTa34Vhgnx543BfOL3riOoSTbPwqyT+NXGxmSjvMFEIto9CbSnDD2vs6/SXzMMSabgjM6dJCWu9NtW2J67wr+ksw6IwtHgxYRl5VLan4nu/BnxQYPPOIQpqD3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qpqsgsej5rAQQfLzINoeLv1dKAeT+VAsd/Ugz/m/Ugcmf1INJhVsn9yDEKoMv5oI5nmkEh5MroVyittdYWKkDdnQXEtGyf2quJRVuKzlHYd13SrYkSoMg/M7bi6SWBHmZ8AZ2HUfSIoI4QXd74hDb0wxVUyknBM1bSPtVUj87l/mo/Gm3TgWk5M+ldFUkAbOzUcSJBWYrLNS5ulTSbpA2cXQRDp3jelRsjCw8fKtWy6EgPlXSsI6R+rmhpnM+GZakRRw5tmgmgbNVSADb8SDM6M7V1aURhpsRdDE88ne5GCxuflQYADPnVEGd7fNAvbPPUpRRXEaQTgsTONdys+PcLos5/EuzGHEA4d9sIxMShkuJl8VG9uni5elF2IdiEPCSikMSJMlFK3vY28Q/w/8AKW3x+DFFOfkdnrphkunLmFmeaqlZDE8qskjIDo7OqZG6DSjP6UGmMdM+lBnlStUA6fNBgFGdkGJxm8XzQaTp4IF+XPUgxAKqSJPxmZmaqDSdLXVkJKWNSvO25WwJQZNS7aKijpCCCzkRsWrpTZpIjTLVqRFETaQEF3Z7RGHd1JsSIMg3jqL1KlFLCCIuywF/3KZp/9k=";

                UploadAdapter.UploadImage(path, imageName, imageBase64);

                return(new UploadImageResponse
                {
                });
            }
            catch (Exception e)
            {
                return(new UploadImageResponse
                {
                });
            }
        }
Exemple #5
0
        public UpdateItemResponse UpdateItem(UpdateItemRequest request)
        {
            try
            {
                if (request != null)
                {
                    Item item = context.Items.FirstOrDefault(p => p.ItemId == request.ItemId && p.Active == true);
                    if (item != null)
                    {
                        var basePath  = "upload\\restaurant";
                        var imagePath = basePath + "\\" + request.ImageName;

                        item.ItemCategoryId  = request.ItemCategoryId ?? null;
                        item.ItemDescription = request.ItemDescription ?? "";
                        item.ItemName        = request.ItemName ?? "";
                        item.ItemPrice       = request.ItemPrice ?? null;
                        item.MainImagePath   = request.MainImagePath ?? "";
                        item.RestaurantId    = request.RestaurantId ?? null;

                        if (request.ImageName != null && request.ImageName.Length > 0)
                        {
                            item.MainImagePath = imagePath;
                            item.ImageType     = request.ContentType;
                        }

                        if (request.ImageName != null && request.ImageName.Length > 0)
                        {
                            #region create image
                            string contentRootPath = _webHostEnvironment.ContentRootPath;
                            var    path            = Path.Combine(contentRootPath, imagePath);

                            UploadAdapter.UploadImage(basePath, request.ImageName, request.Base64Value);
                            #endregion
                        }

                        context.Update(item);
                        context.SaveChanges();
                        context.Dispose();
                    }
                    else
                    {
                        return(new UpdateItemResponse
                        {
                            StatusCode = (int)HttpStatusCode.BadRequest
                        });
                    }
                }
                else
                {
                    return(new UpdateItemResponse
                    {
                        StatusCode = (int)HttpStatusCode.BadRequest
                    });
                }
                return(new UpdateItemResponse
                {
                    StatusCode = (int)HttpStatusCode.OK
                });
            }
            catch (Exception e)
            {
                return(new UpdateItemResponse
                {
                    StatusCode = (int)HttpStatusCode.BadRequest
                });
            }
        }