Example #1
0
        internal AssigmentDTO PutAssigment(AssigmentDTO assigmentDTO)
        {
            try
            {
                var url    = WEBAPIURL + WEBAPI_ASSIGMENT + "/" + assigmentDTO.Id;
                var result = Put(assigmentDTO, url);

                if (result)
                {
                    return(assigmentDTO);
                }

                return(null);
            }
            catch (Exception e)
            {
                return(null);
            }
        }
Example #2
0
        internal AssigmentDTO PostAssigment(AssigmentDTO assigmentDTO)
        {
            try
            {
                var url    = WEBAPIURL + WEBAPI_ASSIGMENT;
                var result = PostObject(assigmentDTO, url);

                if (result)
                {
                    return(assigmentDTO);
                }

                return(null);
            }
            catch (Exception e)
            {
                return(null);
            }
        }