This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private store: Store<AprState> | |
apr$: Observable<AprViewModel>; | |
//replace snippet | |
this.apr$ = this.store.pipe(select(fromAprSelectors.selectedApr)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Snippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Import | |
import { HttpClientModule } from "@angular/common/http"; | |
imports: [ | |
..., | |
..., | |
..., | |
HttpClientModule | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//import at top | |
import { FormGroup } from "@angular/forms"; | |
//Paste with in class | |
passwordMatchValidator(password: string, confirmPassword: string) { | |
return (formGroup: FormGroup) => { | |
const passwordControl = formGroup.controls[password]; | |
const confirmPasswordControl = formGroup.controls[confirmPassword]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//create a new action in action file | |
this.store.dispatch( | |
fromActions.selectProduct({ selectedProduct: user selected product}) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
using CI.SER.Interfaces; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; | |
using SixLabors.ImageSharp; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PUT api/employers/update/5 | |
[HttpPut("update/{employerid}")] | |
[Authorize(Policy = "EmployerPolicy")] | |
public async Task<IActionResult> Put(string employerid, [FromForm] UpdateEmployerViewModel model) | |
{ | |
if (employerid != User.FindFirst(ClaimTypes.NameIdentifier).Value) | |
{ | |
return Unauthorized(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using CI.SER.Interfaces; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; | |
namespace CI.SER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using CI.SER.Interfaces; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; | |
namespace CI.SER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row home-main-row"> | |
<div class="col-md-6 mt-4 pt-5 pl-5"> | |
<h3>Time Tracker</h3> | |
<p>Our time tracking app will save you time and money</p> | |
<a [routerLink]="['register']" | |
routerLinkActive="router-link-active" | |
class="btn btn-info">Create Free Employer Account <i class="fas fa-user-plus"></i></a> | |
</div> | |
<div class="col-md-6 mt-4 home-image-wrapper"> | |
<img src="assets/img/computer.png" |
NewerOlder