Ejemplo n.º 1
0
        public HttpResponse Delete(string id)
        {
            if (!IsUserSignedIn())
            {
                return(Redirect("/Users/Login"));
            }

            commitsService.Delete(id);
            return(Redirect("/Commits/All"));
        }
Ejemplo n.º 2
0
        public HttpResponse Delete(string id)
        {
            if (!this.IsUserSignedIn())
            {
                return(this.Redirect("/"));
            }

            var userId = this.GetUserId();

            commitsService.Delete(id, userId);

            return(this.Redirect("/Commits/All"));
        }