public int SetObserveName(string Id, string Name)
        {
            ObservesModel model = ObserveServiceManager.GetObserveById(Id);

            if (model.Users.Id == User.Identity.GetUserId())
            {
                model.Name = Name;
                ObserveServiceManager.UpdateObserve(model);
                return(1);
            }
            else
            {
                return(2);
            }
        }
        public int SetObserveStatus(string Id, int Status)
        {
            ObservesModel model = ObserveServiceManager.GetObserveById(Id);

            if (model.Users.Id == User.Identity.GetUserId())
            {
                model.Status = Status;
                ObserveServiceManager.UpdateObserve(model);
                return(1);
            }
            else
            {
                return(2);
            }
        }