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); }
public static void DeleteContainer(string conName) { data.DeleteContainer(conName); }