public JsonResult BuiltAddAjax(string setId)
        {
            var user = HttpContext.User as CustomPrincipal;

            try
            {
                userSetService.MarkSetAsCompleted(user.Id, int.Parse(setId), 1);

                return(Json(new { success = true }, JsonRequestBehavior.AllowGet));
            }
            catch (Exception e)
            {
                return(Json(new { error = true, message = e.Message }, JsonRequestBehavior.AllowGet));
            }
        }
 public HttpResponseMessage MarkSetsAsCompleted(UserLSetApi userSet)
 {
     userSetServices.MarkSetAsCompleted(userSet.UserId, userSet.SetId, userSet.Built);
     return(Request.CreateResponse(HttpStatusCode.Created, "Sets removed from inventory"));
 }