public HttpResponse Delete(string id) { if (!IsUserSignedIn()) { return(Redirect("/Users/Login")); } commitsService.Delete(id); return(Redirect("/Commits/All")); }
public HttpResponse Delete(string id) { if (!this.IsUserSignedIn()) { return(this.Redirect("/")); } var userId = this.GetUserId(); commitsService.Delete(id, userId); return(this.Redirect("/Commits/All")); }