/// <summary> /// Save job /// </summary> /// <returns></returns> public string JobSave(JobMain job, string userUuid, HttpPostedFileBase JobImage, long companyId, out long JobsId) { string error = _jobPostRepo.JobSave(job, userUuid, out long jobId); if (error != null) { JobsId = 0; return(error); } JobsId = jobId; if (job.TagName != null && job.TagName != "") { string[] tagsList = job.TagName.Split(','); error = _tagService.SaveTag(tagsList, JobsId, userUuid); if (error != null) { return(error); } } CompanyHasJob cojob = new CompanyHasJob() { JobMainId = jobId, CompanyId = companyId, }; error = _compnyHasJobService.Save(cojob, userUuid); if (error != null) { return(error); } if (JobImage != null) { error = _documentService.UploadImage(JobImage, Section.Job, userUuid, jobId); } return(error); }