Beispiel #1
0
 internal static ServiceName VMServiceName_To_ServiceName(VM_ServiceName service)
 {
     return(new ServiceName
     {
         Id = service.Id,
         LanguageId = service.LanguageId,
         Name = service.Name,
         ServiceId = service.ServiceId
     });
 }
        public ActionResult PerformAddServiceNameInLanguage(int serviceId, string value, int languageId)
        {
            VM_ServiceName serviceName = new VM_ServiceName
            {
                Name       = value,
                LanguageId = languageId,
                ServiceId  = serviceId
            };
            var id = this._iServiceServices.AddNameForService(ConvertVM.VMServiceName_To_ServiceName(serviceName));

            return(Json(id));
        }