public APIResponse DeletePhoto()
        {
            try
            {
                CommonUtil.CheckIsPhotoSupported(record.ModuleAPIName);

                requestMethod = APIConstants.RequestMethod.DELETE;
                urlPath       = record.ModuleAPIName + "/" + record.EntityId + "/photo";

                return(APIRequest.GetInstance(this).GetAPIResponse());
            }
            catch (Exception e) when(!(e is ZCRMException))
            {
                ZCRMLogger.LogError(e);
                throw new ZCRMException(APIConstants.SDK_ERROR, e);
            }
        }
        public APIResponse UploadPhoto(string filePath)
        {
            try
            {
                CommonUtil.CheckIsPhotoSupported(record.ModuleAPIName);
                CommonUtil.ValidateFile(filePath);

                requestMethod = APIConstants.RequestMethod.POST;
                urlPath       = record.ModuleAPIName + "/" + record.EntityId + "/photo";

                return(APIRequest.GetInstance(this).UploadFile(filePath));
            }
            catch (Exception e) when(!(e is ZCRMException))
            {
                ZCRMLogger.LogError(e);
                throw new ZCRMException(APIConstants.SDK_ERROR, e);
            }
        }