예제 #1
0
        private static ServiceResponse <string> DeleteContainer(HttpContext context)
        {
            ServiceResponse <string> respDelete = new ServiceResponse <string>();
            string conName = context.Request.Query["name"];

            if (!String.IsNullOrEmpty(conName))
            {
                SpoonData.DeleteContainer(conName);

                respDelete.Data    = "Success";
                respDelete.Message = "Success";
                respDelete.Success = true;
            }
            else
            {
                respDelete.Data    = "Failure";
                respDelete.Message = "Name or Id not valid";
                respDelete.Success = false;
            }

            return(respDelete);
        }
예제 #2
0
 public static void DeleteContainer(string conName)
 {
     data.DeleteContainer(conName);
 }